import { createRouter, createWebHistory } from 'vue-router'
import RecorderView from '../views/RecorderView.vue'
import ExecutionView from '../views/ExecutionView.vue'
import DebugView from '../views/DebugView.vue'
import ManagementView from '../views/ManagementView.vue'

const routes = [
  {
    path: '/',
    redirect: '/management'
  },
  {
    path: '/recorder',
    name: 'Recorder',
    component: RecorderView
  },
  {
    path: '/execution',
    name: 'Execution',
    component: ExecutionView
  },
  {
    path: '/debug',
    name: 'Debug',
    component: DebugView
  },
  {
    path: '/management',
    name: 'Management',
    component: ManagementView
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
